package com.xpresso.utils.maps;

public class Address {

	protected String street;
	protected String city;
	protected String state;
	protected String zip;
	protected String addressString;
	protected Coordinate coordinate;
	
	public Address(){
		
	}
	
	public Address(String street, String city, String state, String zip){
		this.street = street;
		this.city = city;
		this.state = state;
		this.zip = zip;		
	}
	
	public Address(String addressString){
		this.addressString = addressString;
	}
	
	public String toString(){
		if (this.street == null){
			return this.coordinate.getLatitude() + ", " + this.coordinate.getLongitude();			
		} else {
			return this.street + ", " + this.city + ", " + this.state + ", " + this.zip;
		}
	}
	
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public Coordinate getCoordinate() {
		return coordinate;
	}
	public void setCoordinate(Coordinate coordinate) {
		this.coordinate = coordinate;
	}

	public String getAddressString() {
		return addressString;
	}

	public void setAddressString(String addressString) {
		this.addressString = addressString;
	}
	
	
}
